#!/usr/bin/env python
# encoding: utf-8
"""
@Author: Beam
@Mail:506556658@qq.com
@file: backup_db.py
@time: 2017/7/19 16:46
"""


import os,sys
from subprocess import Popen,PIPE

DBACKUPDIR = '/data/dbbackup/'


class DBtools(object):
    '''初始化目录'''
    def __init__(self):
        if os.path.exists(DBACKUPDIR):
            os.makedirs(DBACKUPDIR)



if __name__ == '__main__':
    mysqluser='root'
    passwd='xsteachops'
